public class Test {
    public int year;
    public int month;
    public int day;

    public void setDay(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDay() {
        System.out.println(year + "-" + month + "-" + day);
    }

    public static void main(String[] args) {
        Test testDate = new Test();
        testDate.setDay(2022, 8, 30);
        testDate.printDay();
    }
}
